// 工单管理相关的API
import request from '@/utils/request'

/**
 * 获取工单状态列表
 * @returns Promise
 */
export const getAllTaskStatusAPI = () => request({
  url: '/task-service/task/allTaskStatus'
})

/**
 * 获取所有工单类型
 * @returns Promise
 */
export const getTaskTypeAPI = () => request({
  url: '/task-service/taskType/list'
})

/**
 * 工单搜索
 * @returns Promise
 */
export const getSearchTaskAPI = () => request({
  url: '/task-service/task/search'
})

export const getCreateTaskAPI = (data) => request({
  url: '/task-service/task/create',
  method: 'POST',
  data: data
})
